package com.design.pattern.factorymethod.factory;

import com.design.pattern.factorymethod.product.BenZ;
import com.design.pattern.factorymethod.product.Car;

/**
 * Created by Administrator on 2016/5/17.
 * 具体工厂，每一个工厂负责一个具体产品
 */
public class BenZFactory implements Factory {
    @Override
    public Car createCar(String carName) {
        return new BenZ(carName);
    }
}
